function turnit (dvn,dvi){
	if (dvn.style.display=="none") {
		dvn.style.display="";
		if(dvi!=null)
		    dvi.src='../image/menujian.gif';
	}else if (dvn.style.display=="") {
		dvn.style.display="none";
		if(dvi!=null)
		    dvi.src='../image/menujia.gif';
	}
}
function expandall(){
	for(i=0;i<100;i++){
		if( document.getElementById("G" + String(i)) ){
			document.getElementById("G" + String(i)).style.display="";
		}
		if( document.getElementById("I" + String(i)) ){
		    document.getElementById("I" + String(i)).src='/njlt/images/menujian.gif';
		}  
	}
}
function closeall(){
	for(i=0;i<100;i++){
		if( document.getElementById("G" + String(i)) ){
			document.getElementById("G" + String(i)).style.display="none";
		}
		if( document.getElementById("I" + String(i)) ){
		    document.getElementById("I" + String(i)).src='/njlt/images/menujia.gif';
		}  
	}
}
function setMouseoverStyle(thetd){
	if(thetd.type=='leaf')
	    thetd.style.background="#FFE2FF";
    else 
        thetd.style.background="#E5F1FF";	    
	thetd.style.border="1px solid #bbbbbb";
	thetd.style.cursor="hand";
}
function setMouseoutStyle(thetd){
	thetd.style.border="1px solid #a1d0fe";
	thetd.style.cursor="hand";
}
var pressed=null;
function doit(thetd,url){
	if(pressed!=null)
	{pressed.style.backgroundImage='url(../image/button02_e.gif)';}
	thetd.style.backgroundImage='url(../image/button02_d.gif)';
	parent.mainFrame.location=url;
	pressed=thetd;
	//document.all.menuurl.innerHTML = "[" + name + "]";
}
var clicked=null;
function on_Click(thetd,url)
{	
	if(clicked!=null)
	{clicked.style.backgroundImage='url(image/button01.gif)';}
	thetd.style.backgroundImage='url(image/button01_e.gif)';
	thetd.style.cursor = "hand";
	clicked=thetd;
	parent.leftFrame.location = url;
	parent.mainFrame.location = 'mainframe.do';
}
